package io.renren.modules.skate.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.common.constant.Constant;
import io.renren.common.utils.ConvertUtils;
import io.renren.modules.skate.dao.FMemberUnitDao;
import io.renren.modules.skate.dto.FMemberUnitDTO;
import io.renren.modules.skate.entity.FMemberUnitEntity;
import io.renren.modules.skate.service.FMemberUnitService;
import io.renren.modules.security.user.SecurityUser;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 会员单位
 *
 * @author Mark sunlightcs@gmail.com
 * @since 3.0 2023-11-28
 */
@Service
public class FMemberUnitServiceImpl extends CrudServiceImpl<FMemberUnitDao, FMemberUnitEntity, FMemberUnitDTO> implements FMemberUnitService {

    @Override
    public QueryWrapper<FMemberUnitEntity> getWrapper(Map<String, Object> params){
        QueryWrapper<FMemberUnitEntity> wrapper = new QueryWrapper<>();


        return wrapper;
    }


    @Override
    public List<FMemberUnitDTO> queryList() {
        List<FMemberUnitEntity> list = baseDao.selectList(null);
        return ConvertUtils.sourceToTarget(list, currentDtoClass());
    }
}